package com.atguigu.edusocket.service;

import com.atguigu.edusocket.entity.AlarmNotification;
import com.atguigu.edusocket.entity.EventQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.minio.errors.*;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 * 报警数据推送 服务类
 * </p>
 *
 * @author ryan
 * @since 2021-11-26
 */
public interface AlarmNotificationService extends IService<AlarmNotification> {

    void pageQuery(EventQuery eventQuery, Page<AlarmNotification> coursePage);

    String saveAndNotify(AlarmNotification alarmNotification) throws IOException, ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
}
